﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BigInteger
{
    class DigitList
    {
        public List<int> List { get; set; }

        public int Length
        {
            get { return List.Count; }
        }

        public DigitList(int value)
        {
            List = Util.Digitize(value);
        }

        public override string ToString()
        {
            return List.ToArray().Reverse().ToString();
        }
    }
}
